#ifndef USBCONNWIN_H
#define USBCONNWIN_H

#include <QWidget>
#include <QLabel>
#include <QComboBox>
#include <QAction>
#include "rotationchart.h"

class UsbConnWin : public QWidget
{
    Q_OBJECT
public:
    explicit UsbConnWin(QWidget *parent = nullptr);

    ~UsbConnWin();

    // 浅色模式样式
    void setLightUI();

    // 深色模式样式
    void setDarkUI();

private:
    QLabel *m_connDescLab = nullptr;
    QLabel *m_choiceDescLab = nullptr;
    QComboBox *m_modelBox = nullptr;
    RotationChart *m_imageChart = nullptr;

    const QString m_vvStr = tr("vivo");
    const QString m_hwStr = tr("HUAWEI");
    const QString m_xmStr = tr("Xiaomi");
    const QString m_sxStr = tr("SAMSUNG");
    const QString m_oppoStr = tr("OPPO");
    const QString m_otherStr = tr("Other");
    QStringList m_vvImageList;
    QStringList m_hwImageList;
    QStringList m_xmImageList;
    QStringList m_sxImageList;
    QStringList m_oppoImageList;
    QStringList m_otherImageList;

    QString m_nowFlag = "";

Q_SIGNALS:
public Q_SLOTS:

    void valueChanged(QString text);
};

#endif // USBCONNWIN_H
